import request from "@/config/utils/request";

// 查询入库冲销单
export function getFinWriteoffById(data) {
  return request({
    url: "/apis/smp/tran/writeoff/getTranWriteoffById",
    method: "POST",
    data
  });
}

// 提交入库冲销单
export function submitFinWriteoff(data) {
  return request({
    url: "/apis/smp/tran/writeoff/saveTranWriteoff",
    method: "POST",
    data
  });
}

// 新增入库冲销单
export function saveFinWriteoff(data) {
  return request({
    url: "/apis/smp/tran/writeoff/saveTranWriteoff",
    method: "POST",
    data
  });
}

// 编辑保存入库冲销单
export function editFinWriteoff(data) {
  return request({
    url: "/apis/smp/tran/writeoff/save/editTranWriteoff",
    method: "POST",
    data
  });
}

// 编辑入库冲销单提交
export function editSubmitFinWriteoff(data) {
  return request({
    url: "/apis/smp/tran/writeoff/submit/editTranWriteoff",
    method: "POST",
    data
  });
}

// 撤回入库冲销单
export function revokeFinWriteoff(data) {
  return request({
    url: "/apis/smp/tran/writeoff/revokeTranWriteoff",
    method: "POST",
    data
  });
}

// 删除入库冲销单
export function removeFinWriteoff(data) {
  return request({
    url: "/apis/smp/tran/writeoff/removeTranWriteoff",
    method: "POST",
    data
  });
}

// 查询入库单详情
export function getFinStorageById(data) {
  return request({
    url: "/apis/smp/tran/storage/getTranStorage",
    method: "POST",
    data
  });
}

// 暂存冲销单
export function tsSaveFinStorage(data) {
  return request({
    url: "/apis/smp/tran/writeoff/tempSave/editTranWriteoff",
    method: "POST",
    data
  });
}